﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Logistics_Management_System.Transportation
{
    public class Transportation_Repository : ServiceBase
    {
        public LG_Transportation GetTransportationById(int trans_id)
        { return (from trans in this.DB.LG_Transportations where trans.Id == trans_id select trans).FirstOrDefault<LG_Transportation>(); }

        public List<LG_Transportation> GetTransportationsByBranchId(int branch_id)
        { return (from trans in this.DB.LG_Transportations where trans.Branch_Id == branch_id select trans).ToList<LG_Transportation>(); }

    }
}